// LightsDlg.cpp : implementation file
//

#include "stdafx.h"
#include "OpenGL.h"
#include "LightsDlg.h"


// LightsDlg dialog

IMPLEMENT_DYNAMIC(LightsDlg, CDialog)

LightsDlg::LightsDlg(CWnd* pParent /*=NULL*/)
	: CDialog(LightsDlg::IDD, pParent)
	, m_light1x(0)
	, m_light1y(0)
	, m_light1z(0)
	, m_light1r(0)
	, m_light1g(0)
	, m_light1b(0)
	, m_light1enable(FALSE)
	, m_light2x(0)
	, m_light2y(0)
	, m_light2z(0)
	, m_light2r(0)
	, m_light2g(0)
	, m_light2b(0)
	, m_light2enable(FALSE)
	, m_light3x(0)
	, m_light3y(0)
	, m_light3z(0)
	, m_light3r(0)
	, m_light3g(0)
	, m_light3b(0)
	, m_light3enable(FALSE)
	, m_light4x(0)
	, m_light4y(0)
	, m_light4z(0)
	, m_light4r(0)
	, m_light4g(0)
	, m_light4b(0)
	, m_light4enable(FALSE)
	, m_light5x(0)
	, m_light5y(0)
	, m_light5z(0)
	, m_light5r(0)
	, m_light5g(0)
	, m_light5b(0)
	, m_light5enable(FALSE)
	, m_light6x(0)
	, m_light6y(0)
	, m_light6z(0)
	, m_light6r(0)
	, m_light6g(0)
	, m_light6b(0)
	, m_light6enable(FALSE)
	, m_light7x(0)
	, m_light7y(0)
	, m_light7z(0)
	, m_light7r(0)
	, m_light7g(0)
	, m_light7b(0)
	, m_light7enable(FALSE)
	, m_light8x(0)
	, m_light8y(0)
	, m_light8z(0)
	, m_light8r(0)
	, m_light8g(0)
	, m_light8b(0)
	, m_light8enable(FALSE)
	, m_ambient_intensitiy_r(0)
	, m_ambient_intensitiy_g(0)
	, m_ambient_intensitiy_b(0)
	, m_light1point(FALSE)
	, m_light5point(FALSE)
	, m_light2point(FALSE)
	, m_light6point(FALSE)
	, m_light3point(FALSE)
	, m_light7point(FALSE)
	, m_light4point(FALSE)
	, m_light8point(FALSE)
{

}

LightsDlg::~LightsDlg()
{
}

void LightsDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT1, m_light1x);
	DDX_Text(pDX, IDC_EDIT2, m_light1y);
	DDX_Text(pDX, IDC_EDIT3, m_light1z);
	DDX_Text(pDX, IDC_EDIT4, m_light1r);
	DDX_Text(pDX, IDC_EDIT5, m_light1g);
	DDX_Text(pDX, IDC_EDIT6, m_light1b);
	DDX_Check(pDX, IDC_CHECK1, m_light1enable);
	DDX_Text(pDX, IDC_EDIT7, m_light2x);
	DDX_Text(pDX, IDC_EDIT8, m_light2y);
	DDX_Text(pDX, IDC_EDIT9, m_light2z);
	DDX_Text(pDX, IDC_EDIT10, m_light2r);
	DDX_Text(pDX, IDC_EDIT11, m_light2g);
	DDX_Text(pDX, IDC_EDIT12, m_light2b);
	DDX_Check(pDX, IDC_CHECK2, m_light2enable);
	DDX_Text(pDX, IDC_EDIT13, m_light3x);
	DDX_Text(pDX, IDC_EDIT14, m_light3y);
	DDX_Text(pDX, IDC_EDIT15, m_light3z);
	DDX_Text(pDX, IDC_EDIT16, m_light3r);
	DDX_Text(pDX, IDC_EDIT17, m_light3g);
	DDX_Text(pDX, IDC_EDIT18, m_light3b);
	DDX_Check(pDX, IDC_CHECK3, m_light3enable);
	DDX_Text(pDX, IDC_EDIT19, m_light4x);
	DDX_Text(pDX, IDC_EDIT20, m_light4y);
	DDX_Text(pDX, IDC_EDIT21, m_light4z);
	DDX_Text(pDX, IDC_EDIT22, m_light4r);
	DDX_Text(pDX, IDC_EDIT23, m_light4g);
	DDX_Text(pDX, IDC_EDIT24, m_light4b);
	DDX_Check(pDX, IDC_CHECK4, m_light4enable);
	DDX_Text(pDX, IDC_EDIT25, m_light5x);
	DDX_Text(pDX, IDC_EDIT26, m_light5y);
	DDX_Text(pDX, IDC_EDIT27, m_light5z);
	DDX_Text(pDX, IDC_EDIT28, m_light5r);
	DDX_Text(pDX, IDC_EDIT29, m_light5g);
	DDX_Text(pDX, IDC_EDIT30, m_light5b);
	DDX_Check(pDX, IDC_CHECK5, m_light5enable);
	DDX_Text(pDX, IDC_EDIT31, m_light6x);
	DDX_Text(pDX, IDC_EDIT32, m_light6y);
	DDX_Text(pDX, IDC_EDIT33, m_light6z);
	DDX_Text(pDX, IDC_EDIT34, m_light6r);
	DDX_Text(pDX, IDC_EDIT35, m_light6g);
	DDX_Text(pDX, IDC_EDIT36, m_light6b);
	DDX_Check(pDX, IDC_CHECK6, m_light6enable);
	DDX_Text(pDX, IDC_EDIT37, m_light7x);
	DDX_Text(pDX, IDC_EDIT38, m_light7y);
	DDX_Text(pDX, IDC_EDIT39, m_light7z);
	DDX_Text(pDX, IDC_EDIT40, m_light7r);
	DDX_Text(pDX, IDC_EDIT41, m_light7g);
	DDX_Text(pDX, IDC_EDIT42, m_light7b);
	DDX_Check(pDX, IDC_CHECK7, m_light7enable);
	DDX_Text(pDX, IDC_EDIT43, m_light8x);
	DDX_Text(pDX, IDC_EDIT44, m_light8y);
	DDX_Text(pDX, IDC_EDIT45, m_light8z);
	DDX_Text(pDX, IDC_EDIT46, m_light8r);
	DDX_Text(pDX, IDC_EDIT47, m_light8g);
	DDX_Text(pDX, IDC_EDIT48, m_light8b);
	DDX_Check(pDX, IDC_CHECK8, m_light8enable);
	DDX_Text(pDX, IDC_EDIT49, m_ambient_intensitiy_r);
	DDX_Text(pDX, IDC_EDIT50, m_ambient_intensitiy_g);
	DDX_Text(pDX, IDC_EDIT51, m_ambient_intensitiy_b);
	DDX_Check(pDX, IDC_CHECK9, m_light1point);
	DDX_Check(pDX, IDC_CHECK10, m_light5point);
	DDX_Check(pDX, IDC_CHECK11, m_light2point);
	DDX_Check(pDX, IDC_CHECK12, m_light6point);
	DDX_Check(pDX, IDC_CHECK13, m_light3point);
	DDX_Check(pDX, IDC_CHECK14, m_light7point);
	DDX_Check(pDX, IDC_CHECK15, m_light4point);
	DDX_Check(pDX, IDC_CHECK16, m_light8point);
}


BEGIN_MESSAGE_MAP(LightsDlg, CDialog)
END_MESSAGE_MAP()


// LightsDlg message handlers
